package com.example.tree.service;

import com.example.tree.entity.PublishCritic;
import com.example.tree.entity.dto.PublishCriticDto;
import com.example.tree.entity.vo.PublishCriticVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface PublishCriticService {

    /**
     * 列表查询
     */
    public PageInfo<PublishCriticVO> queryList(String articleId);

    /**
     * 添加评论
     */
    Integer add(PublishCriticDto publishCriticDto) throws Exception;

    /**
     * 我的评论
     */
    public List<PublishCritic> queryMyComment(String criticUserId);
}
